# -!- coding: utf-8 -!-
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# channel_fund_api
 存放api接口信息。以dict形式存放，这样就可以API_ALL[''][url]这种方式去取，看起来较直观，知道取得是哪个接口的那部分信息
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
from pycacho.cachobase.deal_time import minus_date

cur_time = minus_date(0,'q')

API_CHANNEL={
    "channel_headers": {
        "requestId": 'APCHT'+ cur_time,
        "method": "open.api.apply.cht",
        "channelCd": "CHT",
        "productCd": "CHT001",
        "sign":"60d391ff2a2c568d1f1f86b8548e2663"
    },
    'channel_apply':{
        "businessType": "BUS1233",                    # 业务类型
        "empName": "唐朝物流管理有限公司",
        "organCode": "91330102MA2B0KNG2C",
        "city": "深圳市3",
        "address": "深圳市滨海大道3",                   # 借款企业通讯地址
        "empContact": "小明3",                         # 借款企业联系人
        "mobile": "15820758583",
        "mail": "12329@qq.com",
        "legalIdNo": "650102199009251042",
        "legalName": "测试测",
        "principalAmt": 30343.12,
        "dailyRate": 0.09,                            # 日利率, 如0.03，合同显示0.03%
        "yearRate": 0.69,
        "loanStartDate": "2020-12-10",
        "loanEndDate": "2022-12-08",                  # 贷款止息日,yyyy-MM-dd
        "loanPeriods": 24,                            # 借款期限
        "loanDays":1267,
        "repayDate": "2021-01-10",
        "repayPrincipalAmt": 20001.28,
        "repayInterestAmt": 1390,
        "accountName": "小马哥的账户",                  # 乙方指定贷款的接收账户户名
        "openBankName": "中国人民银行3",
        "accountNo": "88888888883",                   # 乙方指定贷款的接收账户账号
        "acceptorFemaleAddress": "深圳南山",           # 个人无限连带责任承若人女方通讯地址
        "acceptorFemaleIdNo": "650102199009251034",   # 个人无限连带责任承若人女方身份证号
        "acceptorFemaleMobile": "15645267645",
        "acceptorFemaleName": "测测一",
        "acceptorMaleAddress": "深圳福田",             # 个人无限连带责任承若人男方通讯地址
        "acceptorMaleIdNo": "650102199009251069",
        "acceptorMaleMobile": "15736748571",
        "acceptorMaleName": "测试一",
        "acceptorMarriageNo": "666666666667",         # 个人无限连带责任承若人结婚证编号
        "terminalNo": "NO00000003",                   # 商品融资质押智能终端货物编号
        "regulatoryCost": 1034.20,                    # 商品融资质押监管等费用
    },
    'channel_loan':{
        "applyNo": "小明3"
    },
    'channel_subrogation':{
        "applyNoList": [
            'xxxx234xxxx',
        ]
    },
}